<?php
	require(__INCLUDES__ . '/prepend.inc.php'); 
	require(__INCLUDES__ . '/header.inc.php');
?>
	<div id="logoBar">
		<h1><a href='index.php' style="text-decoration: none;">Apitva</a>  <?php //_p('- ' . QApplication::$LoadedPage);  ?></h1>
		<div id="menuBar">
			<?php 
					$index = '';
					$people = '';
					$amazon = '';
					$library = '';
					$share = '';
					$history = '';
					
					
					if($_SESSION['User'] <> '')
					{
						
						switch(QApplication::$LoadedPage)
						{
							case 'Home':
								$index = 'current';
								break;
							case 'My Contacts':
								$people = 'current';
								break;
							case 'Search and Add Assets':
								$amazon = 'current';
								break;
							case 'My Library':
								$library = 'current';
								break;
							case 'Lend my things':
								$share = 'current';
								break;
							case 'Asset Log':
								$history = 'current';
								break;							
						}
						?>
					<ul id="blue">
						<li><span><a href="Signout.php">Signout</a></span></li>
						<li class="<?php _p($history);?>"><span><a href="AssetLog.php">Asset History</a></span></li>
						<li class="<?php _p($people);?>"><span><a href="peopledetails_list.php">Manage Contacts</a></span></li>
						<li class="<?php _p($amazon);?>"><span><a href="AmazonSearch.php">Add Assets</a></span></li>
						<li class="<?php _p($library);?>"><span><a href="MyLibrary.php">My Library</a></span></li>
						<li class="<?php _p($share);?>"><span><a href="ShareAssets.php">Lend my things</a></span></li>
						<li class="<?php _p($index);?>"><span><a href="index.php">Home</a></span></li>
					</ul>

				<?php }
					else
					{
						//QApplication::Redirect('index.php');
					}
				?>
		</div>
	</div>